/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.perficient.ibuzz.ui;

import com.objogate.wl.swing.AWTEventQueueProber;
import com.objogate.wl.swing.driver.ComponentDriver;
import com.objogate.wl.swing.driver.JButtonDriver;
import com.objogate.wl.swing.driver.JFrameDriver;
import com.objogate.wl.swing.driver.JLabelDriver;
import com.objogate.wl.swing.driver.JListDriver;
import com.objogate.wl.swing.driver.JTextComponentDriver;
import com.objogate.wl.swing.gesture.GesturePerformer;
import javax.swing.JButton;
import javax.swing.JList;
import javax.swing.JTextArea;


/**
 *
 * @author Trainning
 */
public class FormMessageSenderDriver extends JFrameDriver {
    public FormMessageSenderDriver(){
        super(new GesturePerformer(),new AWTEventQueueProber(), named("iBuzz Message Sender"), showingOnScreen());
    }

    public JButtonDriver button(String name)
    {
        return new JButtonDriver(this, JButton.class, ComponentDriver.named(name));
    }

    public JTextComponentDriver textArea(String name)
    {
        return new JTextComponentDriver(this, JTextArea.class, ComponentDriver.named(name));
    }

    public JLabelDriver label(String name)
    {
        return new JLabelDriver(this, ComponentDriver.named(name));
    }

    public JListDriver list(String name){
         return new JListDriver(this, JList.class, ComponentDriver.named(name));
    }
}
